package com.nk.enums;

public enum ResponseCode {
    SUCCESS(200, "操作成功"),
    FAILURE(500, "操作失败"),
    ;

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int code() {
        return code;
    }

    public String desc() {
        return desc;
    }
}
